package com.nuo.admin.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nuo.admin.base.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nuo.admin.pojo.dto.AuthUserDTO;
import com.nuo.admin.pojo.query.UserPageQuery;
import com.nuo.admin.pojo.vo.user.UserFormVO;
import com.nuo.admin.pojo.vo.user.UserPageVO;

/**
* @author LGC
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2022-02-09 11:35:10
*/
public interface ISysUserService extends IService<SysUser> {
    /**
     * 用户分页列表
     *
     * @return
     */
    IPage<UserPageVO> listUsersWithPage(UserPageQuery queryParams);

    /**
     * 新增用户
     *
     * @param user
     * @return
     */
    boolean saveUser(SysUser user);

    /**
     * 修改用户
     *
     * @param user
     * @return
     */
    boolean updateUser(SysUser user);


    /**
     * 根据用户ID获取用户详情
     *
     * @param userId
     * @return
     */
    UserFormVO getUserFormDetail(Long userId);
}
